package lianxi9;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class Intro {

	
	public static void main(String[] args) {
		List<Integer>  numbers =Arrays.asList(3,5,1,2,6);
		numbers.sort(Comparator.naturalOrder());
		System.out.println(numbers);
		
		System.out.println(numbers.stream().max(Comparator.naturalOrder()).get());
		
	}
}
